package fun.gudu.modules.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import fun.gudu.modules.entity.Message;
import fun.gudu.modules.mapper.tdengine.MessageMapper;
import fun.gudu.modules.service.IMessageService;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("slave_1")
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements IMessageService {
    @Override
    public List<Message> find() {
        return this.baseMapper.find();
    }
}
